/****** Object:  Stored Procedure [dbo].spChiTietBienBanNhapHangDeleteAllByMaBBNH Script Date: 7/16/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spChiTietBienBanNhapHangDeleteAllByMaBBNH]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spChiTietBienBanNhapHangDeleteAllByMaBBNH]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-------------a----------------------
**		17/07/2012	SongTM					Innit created
*******************************************************************************/


CREATE PROCEDURE [dbo].[spChiTietBienBanNhapHangDeleteAllByMaBBNH]
(
	@MaBBNH nvarchar(12)
)
WITH ENCRYPTION

AS

SET NOCOUNT ON

DELETE FROM [tbl_ChiTietBienBanNhapHang]
WHERE	[MaBBNH] = @MaBBNH
GO

--GRANT EXECUTE ON [dbo].[spChiTietBienBanNhapHangDeleteAllByMaBBNH] TO [sa]
--GO
